Skip to content

Add support for getrandom syscall on DragonFly BSD#210

Merged
newpavlov merged 1 commit intorust-random:masterfrom
tklauser:getrandom-dragonfly
Apr 4, 2021
Merged

Add support for getrandom syscall on DragonFly BSD#210
newpavlov merged 1 commit intorust-random:masterfrom
tklauser:getrandom-dragonfly

Conversation

@tklauser
Copy link
Contributor

DragonFly BSD supports the getrandom system call since version 5.7 [1].
Use it if available, otherwise fall back to /dev/random.

[1] https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom

DragonFly BSD supports the getrandom system call since version 5.7 [1].
Use it if available, otherwise fall back to /dev/random.

[1] https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser
Copy link
Contributor Author

Friendly ping @josephlr @newpavlov

Copy link
Member

@newpavlov newpavlov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Can I assume that you have verified that this code indeed works on pre and post 5.7 DragonFly BSDs without issues?

I will leave this PR open for several days to give @josephlr time to check this PR as well.

@tklauser
Copy link
Contributor Author

Looks good to me! Can I assume that you have verified that this code indeed works on pre and post 5.7 DragonFly BSDs without issues?

Thanks for the review. Yes, I successfully verified this on DragonFly BSD 5.2 and 5.8 but forgot to mention this in the PR description. Sorry about that.

@newpavlov newpavlov merged commit 36d085a into rust-random:master Apr 4, 2021
@tklauser tklauser deleted the getrandom-dragonfly branch April 4, 2021 11:13
takumi-earth pushed a commit to earthlings-dev/getrandom that referenced this pull request Jan 27, 2026
DragonFly BSD supports the getrandom system call since version 5.7 [1].
Use it if available, otherwise fall back to /dev/random.

[1] https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants